Repository navigation
Break NominalWordWrap at every Unicode mandatory line break [patch] - #185
Open
matt-edmondson wants to merge 1 commit into
Open
matt-edmondson wants to merge 1 commit into
matt-edmondson wants to merge 1 commit into
Conversation
Split segments on vertical tab, form feed, NEL (U+0085), line separator (U+2028) and paragraph separator (U+2029) as well as LF, so lines they separate stay separate and consecutive ones keep a blank line, as \n\n does. Fixes #184 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_017vfJW63GiadYdzxagcfgyE
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



NominalWordWraptreated only CR/LF as forced breaks, so U+2028, U+2029, NEL, form feed and vertical tab reachedSplitAtBreakingWhiteSpaceas ordinary whitespace and the lines they separated were merged.Change
NominalWordWrapIteratornow splits segments, after the existing Unix normalisation, on\n,\v,\f, U+0085, U+2028 and U+2029 (the UAX Bump Microsoft.NET.Test.Sdk from 17.9.0 to 17.10.0 #14 BK and NL classes). Consecutive separators give a blank line, as\n\ndoes.<returns>doc lists the extra breaks.NormalizeLineEndings/DetermineLineEndingsare unchanged, as the issue suggested.Tests
Open PRs #181 and #183 also edit
NominalWordWrap, but in different places, so at most a small rebase may be needed.Fixes #184
Generated by Claude Code